﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/ViewMain.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ParangonBiz.Default" %>
<%@ Import Namespace="ParangonBiz.Tools" %>

<asp:Content ID="Content2" ContentPlaceHolderID="cphTitle" runat="server">
    <asp:Label runat="server" ID="lblMainContentTitle" />
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="cphContent" runat="server">
    <asp:Literal runat="server" ID="lMainContent" />
    <%--<div class="section_01">
        <div class="top"></div>
        <p>Curabitur ut urna vel purus imperdiet vulputate. Fusce eget metus ac lectus bibendum placerat. Praesent scelerisque, metus sit amet pulvinar tempor, eros ligula tristique massa, sed posuere ante nisl eu tellus. Nullam vitae iaculis magna. Aenean ante lorem, vestibulum eu lacinia rhoncus, eleifend a felis.</p>

        <div class="bottom"></div>
    </div>--%>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="cphListTile" runat="server">
    <asp:Label runat="server" ID="lblListContent" Text="Новости" />
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="cphListContent" runat="server">
    <asp:Repeater runat="server" ID="rptLastMessages">
        <ItemTemplate>
            <div class="news_section">
                <div class="news_date">
                    <asp:Literal runat="server" ID="lblDateDay" Text='<%# PageHelper.GetDateDay(Eval("CreateDate")) %>' />
                    <span>
                        <asp:Literal runat="server" ID="lblDateMonth" Text='<%# PageHelper.GetDateMonth(Eval("CreateDate")) %>' />
                    </span>
                </div>
                <div class="news_content">
                    <div class="header_05">
                        <asp:HyperLink runat="server" ID="hlTitle" Text='<%# Eval("Title")%>' NavigateUrl='<%# String.Format("/Info.aspx?Id={0}", Eval("SiteContentId")) %>' />
                    </div>
                    <p>
                        <asp:Label runat="server" ID="lblNewsTeaser" Text='<%# PageHelper.GetContentTeaser(Eval("Content"), Eval("SiteContentId")) %>' />
                    </p>
                </div>
                <div class="cleaner"></div>
            </div>
        </ItemTemplate>
    </asp:Repeater>
</asp:Content>